package com.admin.entity;

import com.admin.sys.base.module.extend.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
*【住院信息】实体对象
*/

@TableName("hospitalization")
public class Hospitalization extends BaseEntity {
    /*** 主键id */
    private String id;
    /*** 床位号 */
    private String bedNo;
    /*** 患者姓名 */
    private String registerId;
    /*** 主治医生 */
    private String userId;
    /*** 就诊科室 */
    private String officeId;
    /*** 入院时间 */
    private Date inTime;
    /*** 入院时间 范围查询*/
    @TableField(exist = false)
    private List<String> inTimeRange;
    /*** 出院时间 */
    private Date outTime;
    /*** 出院时间 范围查询*/
    @TableField(exist = false)
    private List<String> outTimeRange;
    /*** 住院费用 */
    private String fee;
    /*** 住院原因 */
    private String reason;
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getBedNo() {
        return this.bedNo;
    }
    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }
    public String getRegisterId() {
        return this.registerId;
    }
    public void setRegisterId(String registerId) {
        this.registerId = registerId;
    }
    public String getUserId() {
        return this.userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getOfficeId() {
        return this.officeId;
    }
    public void setOfficeId(String officeId) {
        this.officeId = officeId;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getInTime() {
        return this.inTime;
    }
    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }
    public List<String> getInTimeRange(){
        return this.inTimeRange;
    }
    public void setInTimeRange(List<String> inTimeRange){
        this.inTimeRange = inTimeRange;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getOutTime() {
        return this.outTime;
    }
    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }
    public List<String> getOutTimeRange(){
        return this.outTimeRange;
    }
    public void setOutTimeRange(List<String> outTimeRange){
        this.outTimeRange = outTimeRange;
    }
    public String getFee() {
        return this.fee;
    }
    public void setFee(String fee) {
        this.fee = fee;
    }
    public String getReason() {
        return this.reason;
    }
    public void setReason(String reason) {
        this.reason = reason;
    }
}